class User:
    def fun(self):
        print("hello world")
        print("hello world")
        print("hello world")
        print("hello world")
        print("hello world")
        print("hello world")
        print("hello world")
        ...
    ...
N = {
    "name":"hello world",
    "age":12,
    "address":"beijing",
    "email":"helloworld@qq.com",
    "fun":User().fun,
}

if __name__ == '__main__':
    print(type(User))
    print(type(N["name"]))
    print(N["fun"]())
    
